/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aic.misc;

import java.text.SimpleDateFormat;
import java.util.Date;
import sun.reflect.Reflection;

public class DebugPrint {

    private static SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss:SSS");

    public static void println(String msg) {
        Class<?> callerClass = Reflection.getCallerClass(2);
        System.out.println("("+(sdf.format(new Date()))+") "+callerClass.getName()+": "+msg);
    }

}
